#include "stm32f10x.h"
#include "led.h"
#include "systick.h"
#include "key.h"

/*********************************
 * @brief:	硬件初始化
 * @para:	void
 * @return:	void
 ********************************/
void hardWare_Init(void)
{
	led_Init();
	Systick_Delay_Init();
	key_Init();
	LED_BOARD_OFF();
	LED1_OFF();
	LED2_OFF();
}

int main()
{
	hardWare_Init();
	while(1)
	{
		switch(keyStatus())
		{
			case 1:
				led1_Toggle();
				break;
			case 2:
				led2_Toggle();
				break;	
		}
	}
}
